package com.itheima.vms.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品Spu表
 * </p>
 *
 * @author shenkunlin
 * @since 2025-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_item_spu")
@Schema(description = "商品Spu表")
public class ItemSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "商品ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(title = "商品标题")
    private String title;

    @Schema(title = "副标题")
    private String subTitle;

    @Schema(title = "分类ID1")
    private Integer categoryId1;

    @Schema(title = "分类ID2")
    private Integer categoryId2;

    @Schema(title = "分类ID3")
    private Integer categoryId3;

    @Schema(title = "商品描述")
    private String description;

    @Schema(title = "商品详情")
    private String content;

    @Schema(title = "品牌ID")
    private Integer brandId;

    @Schema(title = "供应商ID")
    private Integer supplierId;

    @Schema(title = "SaaS标识")
    private String saasId;

    @Schema(title = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(title = "创建人账号")
    private String createBy;

    @Schema(title = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(title = "修改人账号")
    private String updateBy;

    @Schema(title = "是否删除  0 未删除  1 已删除")
    @TableField(value = "0")
    private Integer isDel;


}
